package com.glela.common.exception;

/**
 * @author liujie
 */
public enum LoginEnum
{
	//0 未登录  登录失败  已登录  已过期
	NO_LOGIN("noLogin", 0), ERROR_LOGIN("errorLogin", -1), LOGIN("login", 1), EXPIRED("EXPIRED", -2);
	private String code;
	private int status;

	private LoginEnum(String code, int status)
	{
		this.code = code;
		this.status = status;
	}

	/**
	 * @return the code
	 */
	public String getCode()
	{
		return code;
	}

	/**
	 * @return the status
	 */
	public int getStatus()
	{
		return status;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code)
	{
		this.code = code;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(int status)
	{
		this.status = status;
	}

}
